<?php

include_once("../model/Model.php");
$comment = $_POST['textarea4'];
$title = $_POST['videoTitle'];
$privacy = $_POST['Radio13'];
$category = $_POST['videotestinput'];
if($title == "")
{
	$title = $_FILES['videofile']['name'];
}
$ext = end(explode(".", $_FILES['videofile']['name']));


$model = new Model();
$ans = $model->videoFileUpload(urlencode($comment),urlencode($title),$ext,$privacy,$category);

echo  "<script>top.videoUploadComplete('".$ans."','".$title."','".$comment."','".$privacy."','".$category."');</script>";


?>
